#include <stdio.h>

int main(){
    int num[10] = {9,38,58,25,65,5,8,7,66,13};
    int n = sizeof(num)/sizeof (num[0]);
    for(int i=0;i<n;i++){
        for(int j=0;j<n-i-1;j++){
            int temp = 0;
            if(num[j]>num[j+1]){
                temp = num[j];
                num[j] = num[j+1];
                num[j+1] = temp;
            }
        }
    }
    for(int i=0;i<n;i++) {
        printf("%d  ", num[i]);
    }
    return 0;

}